package com.qtenv.datasync.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qtenv.datasync.service.entity.GisLayer;
import com.qtenv.datasync.service.mapper.GisLayerMapper;
import com.qtenv.datasync.service.service.GisLayerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * GIS图层 服务实现类
 * </p>
 *
 * @author CBL
 * @since 2022-07-14
 */
@Service
public class GisLayerServiceImpl extends ServiceImpl<GisLayerMapper, GisLayer> implements GisLayerService {

    @Override
    public List<GisLayer> findByTenantId(String tenantId) {
        return this.list(new QueryWrapper<GisLayer>().eq("tenant_id", tenantId)
                .eq("enable", 1));
    }
}
